package com.sp.biz.user.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2025-07-16 18:32:42
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_dict")
@Schema(name="DictDO对象", description = "")
public class DictDO {

    @TableId(value = "ID", type = IdType.AUTO)
    private String id;

    @TableField("DICT_TYPE，用于标识符号，确定且不能修改")
    private String dictType;

    @TableField("DICT_NAME")
    private String dictName;

    @TableField("DICT_VALUE")
    private String dictValue;

    @Schema(name= "排序")
    @TableField("SORT_NO")
    private Integer sortNo;

    @Schema(name = "是否 启用 1 是 0 否")
    @TableField("IS_ENABLE")
    private String isEnable;

    @Schema(name = "父级id,多个之间用逗号隔开，最后一个为自己的id")
    @TableField("PARENT_ID")
    private String parentId;

    @Schema(name = "父级ids")
    @TableField("PARENT_IDS")
    private String parentIds;

    @Schema(name = "字典标识，用于存储JSON字符串")
    @TableField("MARK")
    private String mark;

    @Schema(name = "备注")
    @TableField("REMARK")
    private String remark;

    @TableField(value = "CREATOR_ID", fill = FieldFill.INSERT)
    private Long creatorId;

    @TableField("UPDATER_TIME")
    private Long updaterTime;

    @Schema(name = "创建时间")
    @TableField(value = "CREATE_TIME", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @Schema(name= "修改时间")
    @TableField(value = "UPDATE_TIME", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


}
